home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-02-27 | 714 b | 29 lines | [TEXT/CWIE] |
- /* SK8 © 1997 Apple Computer, Inc.
- This code is protected under the current SK8 License
- See http://sk8.research.apple.com/ for more information
- Apple Research Laboratories
- */
-
- import java.awt.*;
-
- class oval extends actor {
-
- public Region boundsregion() {
- Region reg = new Region();
- Rectangle myBR = boundsrect(true);
- reg.setOvalRegion(myBR.x, myBR.y, myBR.width, myBR.height);
- return reg;
- }
-
- public Region fillregion() {
- Region reg = new Region();
- Rectangle myBR = boundsrect(true);
- myBR.x += framesizeVar;
- myBR.y += framesizeVar;
- myBR.width -= 2 * framesizeVar;
- myBR.height -= 2 * framesizeVar;
- reg.setOvalRegion(myBR.x, myBR.y, myBR.width, myBR.height);
- return reg;
- }
-
- }